
export enum Route{
    Home,
    About,
    Gif
}

export global System {

    in-out property <length> screen_width:128px;
    in-out property <length> screen_height:64px;

    in-out property <Route> current_page:Home;
    private property<[Route]> page_order: [Route.Home, Route.About, Route.Gif];
    private property<int> current_index: 0;
    public function next_page() {
/*        if (current_page == Route.Home){
            current_page = Route.About;
        }else{
            current_page = Route.Home;
        }*/
        if (current_index == page_order.length){
            current_index = 0;
        }
        current_page = page_order[current_index];
        current_index +=1;

    }
}

export global DateTime {
    in property <int> year: 24;
    in property <int> month: 6;
    in property <int> weekday: 2;
    in property <int> day: 31;
    in property <int> hours: 10;
    in property <int> minutes: 8;
    in property <int> seconds: 30;

    property <[string]> WEEKDAYS_CN: ["一", "二", "三", "四", "五", "六", "日"];
    out property <string> weekday_cn: WEEKDAYS_CN[weekday];
}


export global ImageResouse {
    in-out property <[image]> images:[
        /*@image-url("../assets/cxk-gif/cxk-1.png"),
        @image-url("../assets/cxk-gif/cxk-2.png"),
        @image-url("../assets/cxk-gif/cxk-3.png"),
        @image-url("../assets/cxk-gif/cxk-4.png"),
        @image-url("../assets/cxk-gif/cxk-5.png"),
        @image-url("../assets/cxk-gif/cxk-6.png"),
        @image-url("../assets/cxk-gif/cxk-7.png"),
        @image-url("../assets/cxk-gif/cxk-8.png"),
        @image-url("../assets/cxk-gif/cxk-9.png"),
        @image-url("../assets/cxk-gif/cxk-10.png"),
        @image-url("../assets/cxk-gif/cxk-11.png"),
        @image-url("../assets/cxk-gif/cxk-12.png"),
        @image-url("../assets/cxk-gif/cxk-13.png"),
        @image-url("../assets/cxk-gif/cxk-14.png"),
        @image-url("../assets/cxk-gif/cxk-15.png"),
        @image-url("../assets/cxk-gif/cxk-16.png"),
        @image-url("../assets/cxk-gif/cxk-17.png"),
        @image-url("../assets/cxk-gif/cxk-18.png"),
        @image-url("../assets/cxk-gif/cxk-19.png"),
        @image-url("../assets/cxk-gif/cxk-20.png"),
        @image-url("../assets/cxk-gif/cxk-21.png"),
        @image-url("../assets/cxk-gif/cxk-22.png"),
        @image-url("../assets/cxk-gif/cxk-23.png"),
        @image-url("../assets/cxk-gif/cxk-24.png"),
        @image-url("../assets/cxk-gif/cxk-25.png"),
        @image-url("../assets/cxk-gif/cxk-26.png"),
        @image-url("../assets/cxk-gif/cxk-27.png"),
        @image-url("../assets/cxk-gif/cxk-28.png"),
        @image-url("../assets/cxk-gif/cxk-29.png"),
        @image-url("../assets/cxk-gif/cxk-30.png"),
        @image-url("../assets/cxk-gif/cxk-31.png"),
        @image-url("../assets/cxk-gif/cxk-32.png"),
        @image-url("../assets/cxk-gif/cxk-33.png"),
        @image-url("../assets/cxk-gif/cxk-34.png"),
        @image-url("../assets/cxk-gif/cxk-35.png"),
        @image-url("../assets/cxk-gif/cxk-36.png"),
        @image-url("../assets/cxk-gif/cxk-37.png"),
        @image-url("../assets/cxk-gif/cxk-38.png"),
        @image-url("../assets/cxk-gif/cxk-39.png"),
        @image-url("../assets/cxk-gif/cxk-40.png"),
        @image-url("../assets/cxk-gif/cxk-41.png"),
        @image-url("../assets/cxk-gif/cxk-42.png"),
        @image-url("../assets/cxk-gif/cxk-43.png"),
        @image-url("../assets/cxk-gif/cxk-44.png"),
        @image-url("../assets/cxk-gif/cxk-45.png"),
        @image-url("../assets/cxk-gif/cxk-46.png"),
        @image-url("../assets/cxk-gif/cxk-47.png"),
        @image-url("../assets/cxk-gif/cxk-48.png"),
        @image-url("../assets/cxk-gif/cxk-49.png"),
        @image-url("../assets/cxk-gif/cxk-50.png"),
        @image-url("../assets/cxk-gif/cxk-51.png"),
        @image-url("../assets/cxk-gif/cxk-52.png"),
        @image-url("../assets/cxk-gif/cxk-53.png"),
        @image-url("../assets/cxk-gif/cxk-54.png"),
        @image-url("../assets/cxk-gif/cxk-55.png"),
        @image-url("../assets/cxk-gif/cxk-56.png"),
        @image-url("../assets/cxk-gif/cxk-57.png"),
        @image-url("../assets/cxk-gif/cxk-58.png"),
        @image-url("../assets/cxk-gif/cxk-59.png"),
        @image-url("../assets/cxk-gif/cxk-60.png"),
        @image-url("../assets/cxk-gif/cxk-61.png"),
        @image-url("../assets/cxk-gif/cxk-62.png"),
        @image-url("../assets/cxk-gif/cxk-63.png"),
        @image-url("../assets/cxk-gif/cxk-64.png"),*/
//        @image-url("../assets/cxk-gif/cxk-65.png"),
//        @image-url("../assets/cxk-gif/cxk-66.png"),
//        @image-url("../assets/cxk-gif/cxk-67.png"),
//        @image-url("../assets/cxk-gif/cxk-68.png"),
//        @image-url("../assets/cxk-gif/cxk-69.png"),
//        @image-url("../assets/cxk-gif/cxk-70.png"),
//        @image-url("../assets/cxk-gif/cxk-71.png"),
//        @image-url("../assets/cxk-gif/cxk-72.png"),
        @image-url("../assets/cxk-gif/cxk-73.png"),/*
        @image-url("../assets/cxk-gif/cxk-74.png"),
        @image-url("../assets/cxk-gif/cxk-75.png"),
        @image-url("../assets/cxk-gif/cxk-76.png"),
        @image-url("../assets/cxk-gif/cxk-77.png"),
        @image-url("../assets/cxk-gif/cxk-78.png"),
        @image-url("../assets/cxk-gif/cxk-79.png"),
        @image-url("../assets/cxk-gif/cxk-80.png"),
        @image-url("../assets/cxk-gif/cxk-81.png"),
        @image-url("../assets/cxk-gif/cxk-82.png"),
        @image-url("../assets/cxk-gif/cxk-83.png"),
        @image-url("../assets/cxk-gif/cxk-84.png"),
        @image-url("../assets/cxk-gif/cxk-85.png"),
        @image-url("../assets/cxk-gif/cxk-86.png"),
        @image-url("../assets/cxk-gif/cxk-87.png"),
        @image-url("../assets/cxk-gif/cxk-88.png"),
        @image-url("../assets/cxk-gif/cxk-89.png"),
        @image-url("../assets/cxk-gif/cxk-90.png"),
        @image-url("../assets/cxk-gif/cxk-91.png"),
        @image-url("../assets/cxk-gif/cxk-92.png"),
        @image-url("../assets/cxk-gif/cxk-93.png"),
        @image-url("../assets/cxk-gif/cxk-94.png"),
        @image-url("../assets/cxk-gif/cxk-95.png"),
        @image-url("../assets/cxk-gif/cxk-96.png"),
        @image-url("../assets/cxk-gif/cxk-97.png"),
        @image-url("../assets/cxk-gif/cxk-98.png"),
        @image-url("../assets/cxk-gif/cxk-99.png"),
        @image-url("../assets/cxk-gif/cxk-100.png"),
        @image-url("../assets/cxk-gif/cxk-101.png"),
        @image-url("../assets/cxk-gif/cxk-102.png"),
        @image-url("../assets/cxk-gif/cxk-103.png"),
        @image-url("../assets/cxk-gif/cxk-104.png"),
        @image-url("../assets/cxk-gif/cxk-105.png"),
        @image-url("../assets/cxk-gif/cxk-106.png"),
        @image-url("../assets/cxk-gif/cxk-107.png"),
        @image-url("../assets/cxk-gif/cxk-108.png"),
        @image-url("../assets/cxk-gif/cxk-109.png"),
        @image-url("../assets/cxk-gif/cxk-110.png"),
        @image-url("../assets/cxk-gif/cxk-111.png"),
        @image-url("../assets/cxk-gif/cxk-112.png"),
        @image-url("../assets/cxk-gif/cxk-113.png"),
        @image-url("../assets/cxk-gif/cxk-114.png"),
        @image-url("../assets/cxk-gif/cxk-115.png"),
        @image-url("../assets/cxk-gif/cxk-116.png"),
        @image-url("../assets/cxk-gif/cxk-117.png"),
        @image-url("../assets/cxk-gif/cxk-118.png"),
        @image-url("../assets/cxk-gif/cxk-119.png"),
        @image-url("../assets/cxk-gif/cxk-120.png"),
        @image-url("../assets/cxk-gif/cxk-121.png"),
        @image-url("../assets/cxk-gif/cxk-122.png"),
        @image-url("../assets/cxk-gif/cxk-123.png"),
        @image-url("../assets/cxk-gif/cxk-124.png"),
        @image-url("../assets/cxk-gif/cxk-125.png"),
        @image-url("../assets/cxk-gif/cxk-126.png"),
        @image-url("../assets/cxk-gif/cxk-127.png"),
        @image-url("../assets/cxk-gif/cxk-128.png"),
        @image-url("../assets/cxk-gif/cxk-129.png"),
        @image-url("../assets/cxk-gif/cxk-130.png"),
        @image-url("../assets/cxk-gif/cxk-131.png"),
        @image-url("../assets/cxk-gif/cxk-132.png"),
        @image-url("../assets/cxk-gif/cxk-133.png"),
        @image-url("../assets/cxk-gif/cxk-134.png"),
        @image-url("../assets/cxk-gif/cxk-135.png"),
        @image-url("../assets/cxk-gif/cxk-136.png"),
        @image-url("../assets/cxk-gif/cxk-137.png"),
        @image-url("../assets/cxk-gif/cxk-138.png"),
        @image-url("../assets/cxk-gif/cxk-139.png"),
        @image-url("../assets/cxk-gif/cxk-140.png"),
        @image-url("../assets/cxk-gif/cxk-141.png"),
        @image-url("../assets/cxk-gif/cxk-142.png"),
        @image-url("../assets/cxk-gif/cxk-143.png"),
        @image-url("../assets/cxk-gif/cxk-144.png"),
        @image-url("../assets/cxk-gif/cxk-145.png"),
        @image-url("../assets/cxk-gif/cxk-146.png"),
        @image-url("../assets/cxk-gif/cxk-147.png"),
        @image-url("../assets/cxk-gif/cxk-148.png"),
        @image-url("../assets/cxk-gif/cxk-149.png"),
        @image-url("../assets/cxk-gif/cxk-150.png"),
        @image-url("../assets/cxk-gif/cxk-151.png"),
        @image-url("../assets/cxk-gif/cxk-152.png"),
        @image-url("../assets/cxk-gif/cxk-153.png"),
        @image-url("../assets/cxk-gif/cxk-154.png"),
        @image-url("../assets/cxk-gif/cxk-155.png"),
        @image-url("../assets/cxk-gif/cxk-156.png"),
        @image-url("../assets/cxk-gif/cxk-157.png"),
        @image-url("../assets/cxk-gif/cxk-158.png"),
        @image-url("../assets/cxk-gif/cxk-159.png"),
        @image-url("../assets/cxk-gif/cxk-160.png"),
        @image-url("../assets/cxk-gif/cxk-161.png"),
        @image-url("../assets/cxk-gif/cxk-162.png"),
        @image-url("../assets/cxk-gif/cxk-163.png"),
        @image-url("../assets/cxk-gif/cxk-164.png"),
        @image-url("../assets/cxk-gif/cxk-165.png"),
        @image-url("../assets/cxk-gif/cxk-166.png"),
        @image-url("../assets/cxk-gif/cxk-167.png"),
        @image-url("../assets/cxk-gif/cxk-168.png"),
        @image-url("../assets/cxk-gif/cxk-169.png"),
        @image-url("../assets/cxk-gif/cxk-170.png"),
        @image-url("../assets/cxk-gif/cxk-171.png"),
        @image-url("../assets/cxk-gif/cxk-172.png"),
        @image-url("../assets/cxk-gif/cxk-173.png"),
        @image-url("../assets/cxk-gif/cxk-174.png"),
        @image-url("../assets/cxk-gif/cxk-175.png"),
        @image-url("../assets/cxk-gif/cxk-176.png"),
        @image-url("../assets/cxk-gif/cxk-177.png"),
        @image-url("../assets/cxk-gif/cxk-178.png"),
        @image-url("../assets/cxk-gif/cxk-179.png"),
        @image-url("../assets/cxk-gif/cxk-180.png"),
        @image-url("../assets/cxk-gif/cxk-181.png"),
        @image-url("../assets/cxk-gif/cxk-182.png"),
        @image-url("../assets/cxk-gif/cxk-183.png"),
        @image-url("../assets/cxk-gif/cxk-184.png"),
        @image-url("../assets/cxk-gif/cxk-185.png"),
        @image-url("../assets/cxk-gif/cxk-186.png"),
        @image-url("../assets/cxk-gif/cxk-187.png"),
        @image-url("../assets/cxk-gif/cxk-188.png"),
        @image-url("../assets/cxk-gif/cxk-189.png"),
        @image-url("../assets/cxk-gif/cxk-190.png"),
        @image-url("../assets/cxk-gif/cxk-191.png"),
        @image-url("../assets/cxk-gif/cxk-192.png"),
        @image-url("../assets/cxk-gif/cxk-193.png"),
        @image-url("../assets/cxk-gif/cxk-194.png"),
        @image-url("../assets/cxk-gif/cxk-195.png"),
        @image-url("../assets/cxk-gif/cxk-196.png"),
        @image-url("../assets/cxk-gif/cxk-197.png"),
        @image-url("../assets/cxk-gif/cxk-198.png"),
        @image-url("../assets/cxk-gif/cxk-199.png"),
        @image-url("../assets/cxk-gif/cxk-200.png"),
        @image-url("../assets/cxk-gif/cxk-201.png"),*/
    ];
//    in-out property <[image]> images;
    in-out property <image> src;
}